package com.simsuni.concept;

import java.util.List;
import java.util.Queue;
import java.util.concurrent.ArrayBlockingQueue;


public class SimActivity {
	
	private String name;
	private int duration;
	private SimServiceEntity serviceEntity;
	private Queue<SimEntity> objectEntities;
	private int durationType;
	
	public SimActivity(SimServiceEntity serviceEntity,int durationType){
		this.serviceEntity = serviceEntity;
		this.durationType = durationType;
		objectEntities = new ArrayBlockingQueue(1);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public void putObjectEntity(List<SimEntity> entities){
		objectEntities.addAll(entities);
	}
	public void putObjectEntity(SimEntity entity){
		objectEntities.add(entity);
	}
	
}
